#ifndef SMART_SENSOR_H
#define SMART_SENSOR_H

#include "stdint.h"

#define  SENSOR_NUMS	    (8)

typedef struct
{
    uint8_t   aid[4];
    uint8_t   sno;
    uint8_t   pir;
    float     temp;
    float     humi;
    uint32_t  lux;
    uint32_t  sun_light;
}sensor_device_t;

extern sensor_device_t sensor_device[SENSOR_NUMS+1];
void smart_sensor_init(void);
void smart_sensor_modify(int sno,uint32_t lux,uint32_t sun,float temp,float humi);
#endif // SMART_SENSOR_H
